﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <div id="js-console"></div>
    <script src="scripts/js-console.js"></script>
    <script>
        function checkForPointInCircle(x, y) {
            var pythagorean = Math.pow(x,2) + Math.pow(y,2);
            if (pythagorean < 25) {
                jsConsole.writeLine('Point is in cirlce');
            } else if (pythagorean == 25) {
                jsConsole.writeLine('Point is on cirlce');
            } else {
                jsConsole.writeLine('Point is outside the  cirlce');
            }
        }

        checkForPointInCircle(1, 1);
        checkForPointInCircle(2, 5);
        checkForPointInCircle(5, 5);
    </script>
</body>
</html>